package com.lrkj.property.domain;

import com.lrkj.common.annotation.Excel;
import com.lrkj.common.core.domain.BaseEntity;
import com.lrkj.system.domain.FiscalPeriod;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 小区信息对象 tm_community
 *
 * @author yajun_ren
 * @date 2021-07-22
 */
@Data
public class Community extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private String id;

    /**
     * 机构ID
     */
    @Excel(name = "机构ID")
    private String deptId;

    /**
     * 小区编号
     */
    @Excel(name = "小区编号")
    private String communityNum;

    /**
     * 小区名称
     */
    @Excel(name = "小区名称")
    private String communityName;

    /**
     * 小区地址
     */
    @Excel(name = "小区地址")
    private String address;

    /**
     * 行政区域
     */
    @Excel(name = "行政区域")
    private String cityName;

    /**
     * 行政区域代码
     */
    @Excel(name = "行政区域代码")
    private String cityCode;

    /**
     * 小区面积
     */
    @Excel(name = "小区面积")
    private BigDecimal communityArea;

    /**
     * 祖级ID
     */
    @Excel(name = "祖级ID")
    private String ancestors;

    /**
     * 经度
     */
    @Excel(name = "经度")
    private String latitude;

    /**
     * 维度
     */
    @Excel(name = "维度")
    private String longitude;

    /**
     * 位置坐标
     */
    @Excel(name = "位置坐标")
    private String position;

    /**
     * 数据来源
     */
    @Excel(name = "数据来源")
    private String dataSourceId;

    /**
     * 业务状态
     */
    @Excel(name = "业务状态")
    private String state;

    /**
     * 数据状态（0正常 1停用）
     */
    @Excel(name = "数据状态", readConverterExp = "0=正常,1=停用")
    private String statusCd;

    /**
     * 创建者编码
     */
    private String createByCode;

    /**
     * 更新者编码
     */
    private String updateByCode;

    private String deptName;

    //小区缩略图
    private String imagePath;
    //小区负责人ID
    private String butlerUserId;

    //小区负责人
    private String butlerUserName;

    //小区电话
    private String phoneNum;

    //当前账期
    private String fiscalPeriod;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("deptId", getDeptId())
                .append("communityNum", getCommunityNum())
                .append("communityName", getCommunityName())
                .append("address", getAddress())
                .append("cityName", getCityName())
                .append("cityCode", getCityCode())
                .append("communityArea", getCommunityArea())
                .append("ancestors", getAncestors())
                .append("latitude", getLatitude())
                .append("longitude", getLongitude())
                .append("position", getPosition())
                .append("dataSourceId", getDataSourceId())
                .append("state", getState())
                .append("statusCd", getStatusCd())
                .append("createBy", getCreateBy())
                .append("createByCode", getCreateByCode())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateByCode", getUpdateByCode())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
